﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using EcomProduct.Entities;
using EcomProduct.Data;

#endregion

namespace EcomProduct.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="UserProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class UserProviderBaseCore : EntityProviderBase<EcomProduct.Entities.User, EcomProduct.Entities.UserKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, EcomProduct.Entities.UserKey key)
		{
			return Delete(transactionManager, key.Id);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="_id">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int64 _id)
		{
			return Delete(null, _id);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int64 _id);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override EcomProduct.Entities.User Get(TransactionManager transactionManager, EcomProduct.Entities.UserKey key, int start, int pageLength)
		{
			return GetById(transactionManager, key.Id, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabled(System.Int64 _id, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByIdIsDisabled(null,_id, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabled(System.Int64 _id, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsDisabled(null, _id, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabled(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByIdIsDisabled(transactionManager, _id, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabled(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsDisabled(transactionManager, _id, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabled(System.Int64 _id, System.Boolean _isDisabled, int start, int pageLength, out int count)
		{
			return GetByIdIsDisabled(null, _id, _isDisabled, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByIdIsDisabled(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByIdIsDisabledIsRemoved(null,_id, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsDisabledIsRemoved(null, _id, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByIdIsDisabledIsRemoved(transactionManager, _id, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsDisabledIsRemoved(transactionManager, _id, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByIdIsDisabledIsRemoved(null, _id, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByIdIsDisabledIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsRemoved(System.Int64 _id, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByIdIsRemoved(null,_id, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsRemoved(System.Int64 _id, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsRemoved(null, _id, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByIdIsRemoved(transactionManager, _id, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByIdIsRemoved(transactionManager, _id, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByIdIsRemoved(System.Int64 _id, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByIdIsRemoved(null, _id, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Id_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByIdIsRemoved(TransactionManager transactionManager, System.Int64 _id, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Role index.
		/// </summary>
		/// <param name="_role"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRole(System.String _role)
		{
			int count = -1;
			return GetByRole(null,_role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRole(System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByRole(null, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRole(TransactionManager transactionManager, System.String _role)
		{
			int count = -1;
			return GetByRole(transactionManager, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRole(TransactionManager transactionManager, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByRole(transactionManager, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRole(System.String _role, int start, int pageLength, out int count)
		{
			return GetByRole(null, _role, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByRole(TransactionManager transactionManager, System.String _role, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabled(System.String _role, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByRoleIsDisabled(null,_role, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabled(System.String _role, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsDisabled(null, _role, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabled(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByRoleIsDisabled(transactionManager, _role, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabled(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsDisabled(transactionManager, _role, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabled(System.String _role, System.Boolean _isDisabled, int start, int pageLength, out int count)
		{
			return GetByRoleIsDisabled(null, _role, _isDisabled, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByRoleIsDisabled(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabledIsRemoved(System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByRoleIsDisabledIsRemoved(null,_role, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabledIsRemoved(System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsDisabledIsRemoved(null, _role, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabledIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByRoleIsDisabledIsRemoved(transactionManager, _role, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabledIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsDisabledIsRemoved(transactionManager, _role, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsDisabledIsRemoved(System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByRoleIsDisabledIsRemoved(null, _role, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByRoleIsDisabledIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsRemoved(System.String _role, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByRoleIsRemoved(null,_role, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsRemoved(System.String _role, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsRemoved(null, _role, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByRoleIsRemoved(transactionManager, _role, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByRoleIsRemoved(transactionManager, _role, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByRoleIsRemoved(System.String _role, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByRoleIsRemoved(null, _role, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Role_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_role"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByRoleIsRemoved(TransactionManager transactionManager, System.String _role, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username index.
		/// </summary>
		/// <param name="_username"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsername(System.String _username)
		{
			int count = -1;
			return GetByUsername(null,_username, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsername(System.String _username, int start, int pageLength)
		{
			int count = -1;
			return GetByUsername(null, _username, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsername(TransactionManager transactionManager, System.String _username)
		{
			int count = -1;
			return GetByUsername(transactionManager, _username, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsername(TransactionManager transactionManager, System.String _username, int start, int pageLength)
		{
			int count = -1;
			return GetByUsername(transactionManager, _username, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsername(System.String _username, int start, int pageLength, out int count)
		{
			return GetByUsername(null, _username, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsername(TransactionManager transactionManager, System.String _username, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledIsRemovedRole(System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsDisabledIsRemovedRole(null,_username, _isDisabled, _isRemoved, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledIsRemovedRole(System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsDisabledIsRemovedRole(null, _username, _isDisabled, _isRemoved, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsDisabledIsRemovedRole(transactionManager, _username, _isDisabled, _isRemoved, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsDisabledIsRemovedRole(transactionManager, _username, _isDisabled, _isRemoved, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledIsRemovedRole(System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role, int start, int pageLength, out int count)
		{
			return GetByUsernameIsDisabledIsRemovedRole(null, _username, _isDisabled, _isRemoved, _role, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByUsernameIsDisabledIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.Boolean _isRemoved, System.String _role, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledRole(System.String _username, System.Boolean _isDisabled, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsDisabledRole(null,_username, _isDisabled, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledRole(System.String _username, System.Boolean _isDisabled, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsDisabledRole(null, _username, _isDisabled, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsDisabledRole(transactionManager, _username, _isDisabled, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsDisabledRole(transactionManager, _username, _isDisabled, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsDisabledRole(System.String _username, System.Boolean _isDisabled, System.String _role, int start, int pageLength, out int count)
		{
			return GetByUsernameIsDisabledRole(null, _username, _isDisabled, _role, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsDisabled_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByUsernameIsDisabledRole(TransactionManager transactionManager, System.String _username, System.Boolean _isDisabled, System.String _role, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsRemovedRole(System.String _username, System.Boolean _isRemoved, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsRemovedRole(null,_username, _isRemoved, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsRemovedRole(System.String _username, System.Boolean _isRemoved, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsRemovedRole(null, _username, _isRemoved, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isRemoved, System.String _role)
		{
			int count = -1;
			return GetByUsernameIsRemovedRole(transactionManager, _username, _isRemoved, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isRemoved, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameIsRemovedRole(transactionManager, _username, _isRemoved, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public TList<User> GetByUsernameIsRemovedRole(System.String _username, System.Boolean _isRemoved, System.String _role, int start, int pageLength, out int count)
		{
			return GetByUsernameIsRemovedRole(null, _username, _isRemoved, _role, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_IsRemoved_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="TList&lt;User&gt;"/> class.</returns>
		public abstract TList<User> GetByUsernameIsRemovedRole(TransactionManager transactionManager, System.String _username, System.Boolean _isRemoved, System.String _role, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePassword(System.String _username, System.String _password)
		{
			int count = -1;
			return GetByUsernamePassword(null,_username, _password, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePassword(System.String _username, System.String _password, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePassword(null, _username, _password, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePassword(TransactionManager transactionManager, System.String _username, System.String _password)
		{
			int count = -1;
			return GetByUsernamePassword(transactionManager, _username, _password, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePassword(TransactionManager transactionManager, System.String _username, System.String _password, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePassword(transactionManager, _username, _password, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePassword(System.String _username, System.String _password, int start, int pageLength, out int count)
		{
			return GetByUsernamePassword(null, _username, _password, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsernamePassword(TransactionManager transactionManager, System.String _username, System.String _password, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(System.String _username, System.String _password, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabled(null,_username, _password, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(System.String _username, System.String _password, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabled(null, _username, _password, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabled(transactionManager, _username, _password, _isDisabled, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabled(transactionManager, _username, _password, _isDisabled, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(System.String _username, System.String _password, System.Boolean _isDisabled, int start, int pageLength, out int count)
		{
			return GetByUsernamePasswordIsDisabled(null, _username, _password, _isDisabled, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsernamePasswordIsDisabled(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabledIsRemoved(null,_username, _password, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabledIsRemoved(null, _username, _password, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabledIsRemoved(transactionManager, _username, _password, _isDisabled, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsDisabledIsRemoved(transactionManager, _username, _password, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByUsernamePasswordIsDisabledIsRemoved(null, _username, _password, _isDisabled, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsDisabled_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isDisabled"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsernamePasswordIsDisabledIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isDisabled, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(System.String _username, System.String _password, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByUsernamePasswordIsRemoved(null,_username, _password, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(System.String _username, System.String _password, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsRemoved(null, _username, _password, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isRemoved)
		{
			int count = -1;
			return GetByUsernamePasswordIsRemoved(transactionManager, _username, _password, _isRemoved, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isRemoved, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernamePasswordIsRemoved(transactionManager, _username, _password, _isRemoved, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(System.String _username, System.String _password, System.Boolean _isRemoved, int start, int pageLength, out int count)
		{
			return GetByUsernamePasswordIsRemoved(null, _username, _password, _isRemoved, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Password_IsRemoved index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_password"></param>
		/// <param name="_isRemoved"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsernamePasswordIsRemoved(TransactionManager transactionManager, System.String _username, System.String _password, System.Boolean _isRemoved, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernameRole(System.String _username, System.String _role)
		{
			int count = -1;
			return GetByUsernameRole(null,_username, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernameRole(System.String _username, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameRole(null, _username, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernameRole(TransactionManager transactionManager, System.String _username, System.String _role)
		{
			int count = -1;
			return GetByUsernameRole(transactionManager, _username, _role, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernameRole(TransactionManager transactionManager, System.String _username, System.String _role, int start, int pageLength)
		{
			int count = -1;
			return GetByUsernameRole(transactionManager, _username, _role, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetByUsernameRole(System.String _username, System.String _role, int start, int pageLength, out int count)
		{
			return GetByUsernameRole(null, _username, _role, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblUser_Username_Role index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_username"></param>
		/// <param name="_role"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetByUsernameRole(TransactionManager transactionManager, System.String _username, System.String _role, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblUser index.
		/// </summary>
		/// <param name="_id"></param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetById(System.Int64 _id)
		{
			int count = -1;
			return GetById(null,_id, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblUser index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetById(System.Int64 _id, int start, int pageLength)
		{
			int count = -1;
			return GetById(null, _id, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblUser index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetById(TransactionManager transactionManager, System.Int64 _id)
		{
			int count = -1;
			return GetById(transactionManager, _id, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblUser index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetById(TransactionManager transactionManager, System.Int64 _id, int start, int pageLength)
		{
			int count = -1;
			return GetById(transactionManager, _id, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblUser index.
		/// </summary>
		/// <param name="_id"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public EcomProduct.Entities.User GetById(System.Int64 _id, int start, int pageLength, out int count)
		{
			return GetById(null, _id, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblUser index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_id"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="EcomProduct.Entities.User"/> class.</returns>
		public abstract EcomProduct.Entities.User GetById(TransactionManager transactionManager, System.Int64 _id, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a TList&lt;User&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="TList&lt;User&gt;"/></returns>
		public static TList<User> Fill(IDataReader reader, TList<User> rows, int start, int pageLength)
		{
			NetTiersProvider currentProvider = DataRepository.Provider;
            bool useEntityFactory = currentProvider.UseEntityFactory;
            bool enableEntityTracking = currentProvider.EnableEntityTracking;
            LoadPolicy currentLoadPolicy = currentProvider.CurrentLoadPolicy;
			Type entityCreationFactoryType = currentProvider.EntityCreationalFactoryType;
			
			// advance to the starting row
			for (int i = 0; i < start; i++)
			{
				if (!reader.Read())
				return rows; // not enough rows, just return
			}
			for (int i = 0; i < pageLength; i++)
			{
				if (!reader.Read())
					break; // we are done
					
				string key = null;
				
				EcomProduct.Entities.User c = null;
				if (useEntityFactory)
				{
					key = new System.Text.StringBuilder("User")
					.Append("|").Append((System.Int64)reader[((int)UserColumn.Id - 1)]).ToString();
					c = EntityManager.LocateOrCreate<User>(
					key.ToString(), // EntityTrackingKey
					"User",  //Creational Type
					entityCreationFactoryType,  //Factory used to create entity
					enableEntityTracking); // Track this entity?
				}
				else
				{
					c = new EcomProduct.Entities.User();
				}
				
				if (!enableEntityTracking ||
					c.EntityState == EntityState.Added ||
					(enableEntityTracking &&
					
						(
							(currentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
							(currentLoadPolicy == LoadPolicy.DiscardChanges && c.EntityState != EntityState.Unchanged)
						)
					))
				{
					c.SuppressEntityEvents = true;
					c.Id = (System.Int64)reader[((int)UserColumn.Id - 1)];
					c.Username = (System.String)reader[((int)UserColumn.Username - 1)];
					c.Password = (System.String)reader[((int)UserColumn.Password - 1)];
					c.Firstname = (System.String)reader[((int)UserColumn.Firstname - 1)];
					c.Lastname = (System.String)reader[((int)UserColumn.Lastname - 1)];
					c.Phone = (reader.IsDBNull(((int)UserColumn.Phone - 1)))?null:(System.String)reader[((int)UserColumn.Phone - 1)];
					c.Role = (System.String)reader[((int)UserColumn.Role - 1)];
					c.IsDisabled = (System.Boolean)reader[((int)UserColumn.IsDisabled - 1)];
					c.IsRemoved = (System.Boolean)reader[((int)UserColumn.IsRemoved - 1)];
					c.DateCreate = (System.DateTime)reader[((int)UserColumn.DateCreate - 1)];
					c.UserCreate = (reader.IsDBNull(((int)UserColumn.UserCreate - 1)))?null:(System.String)reader[((int)UserColumn.UserCreate - 1)];
					c.DateModify = (System.DateTime)reader[((int)UserColumn.DateModify - 1)];
					c.UserModify = (reader.IsDBNull(((int)UserColumn.UserModify - 1)))?null:(System.String)reader[((int)UserColumn.UserModify - 1)];
					c.EntityTrackingKey = key;
					c.AcceptChanges();
					c.SuppressEntityEvents = false;
				}
				rows.Add(c);
			}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="EcomProduct.Entities.User"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="EcomProduct.Entities.User"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, EcomProduct.Entities.User entity)
		{
			if (!reader.Read()) return;
			
			entity.Id = (System.Int64)reader[((int)UserColumn.Id - 1)];
			entity.Username = (System.String)reader[((int)UserColumn.Username - 1)];
			entity.Password = (System.String)reader[((int)UserColumn.Password - 1)];
			entity.Firstname = (System.String)reader[((int)UserColumn.Firstname - 1)];
			entity.Lastname = (System.String)reader[((int)UserColumn.Lastname - 1)];
			entity.Phone = (reader.IsDBNull(((int)UserColumn.Phone - 1)))?null:(System.String)reader[((int)UserColumn.Phone - 1)];
			entity.Role = (System.String)reader[((int)UserColumn.Role - 1)];
			entity.IsDisabled = (System.Boolean)reader[((int)UserColumn.IsDisabled - 1)];
			entity.IsRemoved = (System.Boolean)reader[((int)UserColumn.IsRemoved - 1)];
			entity.DateCreate = (System.DateTime)reader[((int)UserColumn.DateCreate - 1)];
			entity.UserCreate = (reader.IsDBNull(((int)UserColumn.UserCreate - 1)))?null:(System.String)reader[((int)UserColumn.UserCreate - 1)];
			entity.DateModify = (System.DateTime)reader[((int)UserColumn.DateModify - 1)];
			entity.UserModify = (reader.IsDBNull(((int)UserColumn.UserModify - 1)))?null:(System.String)reader[((int)UserColumn.UserModify - 1)];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="EcomProduct.Entities.User"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="EcomProduct.Entities.User"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, EcomProduct.Entities.User entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.Id = (System.Int64)dataRow["Id"];
			entity.Username = (System.String)dataRow["Username"];
			entity.Password = (System.String)dataRow["Password"];
			entity.Firstname = (System.String)dataRow["Firstname"];
			entity.Lastname = (System.String)dataRow["Lastname"];
			entity.Phone = Convert.IsDBNull(dataRow["Phone"]) ? null : (System.String)dataRow["Phone"];
			entity.Role = (System.String)dataRow["Role"];
			entity.IsDisabled = (System.Boolean)dataRow["IsDisabled"];
			entity.IsRemoved = (System.Boolean)dataRow["IsRemoved"];
			entity.DateCreate = (System.DateTime)dataRow["DateCreate"];
			entity.UserCreate = Convert.IsDBNull(dataRow["UserCreate"]) ? null : (System.String)dataRow["UserCreate"];
			entity.DateModify = (System.DateTime)dataRow["DateModify"];
			entity.UserModify = Convert.IsDBNull(dataRow["UserModify"]) ? null : (System.String)dataRow["UserModify"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="EcomProduct.Entities.User"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">EcomProduct.Entities.User Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		public override void DeepLoad(TransactionManager transactionManager, EcomProduct.Entities.User entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the EcomProduct.Entities.User object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">EcomProduct.Entities.User instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">EcomProduct.Entities.User Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		public override bool DeepSave(TransactionManager transactionManager, EcomProduct.Entities.User entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region UserChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>EcomProduct.Entities.User</c>
	///</summary>
	public enum UserChildEntityTypes
	{
	}
	
	#endregion UserChildEntityTypes
	
	#region UserFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;UserColumn&gt;"/> class
	/// that is used exclusively with a <see cref="User"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class UserFilterBuilder : SqlFilterBuilder<UserColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the UserFilterBuilder class.
		/// </summary>
		public UserFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the UserFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public UserFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the UserFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public UserFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion UserFilterBuilder
	
	#region UserParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;UserColumn&gt;"/> class
	/// that is used exclusively with a <see cref="User"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class UserParameterBuilder : ParameterizedSqlFilterBuilder<UserColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the UserParameterBuilder class.
		/// </summary>
		public UserParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the UserParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public UserParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the UserParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public UserParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion UserParameterBuilder
	
	#region UserSortBuilder
    
    /// <summary>
    /// A strongly-typed instance of the <see cref="SqlSortBuilder&lt;UserColumn&gt;"/> class
	/// that is used exclusively with a <see cref="User"/> object.
    /// </summary>
    [CLSCompliant(true)]
    public class UserSortBuilder : SqlSortBuilder<UserColumn>
    {
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the UserSqlSortBuilder class.
		/// </summary>
		public UserSortBuilder() : base() { }

		#endregion Constructors

    }    
    #endregion UserSortBuilder
	
} // end namespace
